package com.unknowpupil.web.service;

import com.unknowpupil.web.base.BaseCrudService;
import com.unknowpupil.web.domain.AccountInfo;
import com.unknowpupil.web.domain.Wallet;
import com.unknowpupil.web.exception.MxException;

/**
 * @Classname: IWalletService
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2019/11/6 12:00
 * @Description:
 * @Version: 1.0
 */
public interface IWalletService extends BaseCrudService<Wallet> {
    /**
     * 根据币种名和地址获取对应钱包
     * @param eth
     * @param to
     * @return
     */
    Wallet getWalletByCurrencyAndAddress(String eth, String to);

    /**
     * 封装实体

     * @return
     */
    boolean createWallet(AccountInfo accountInfo) throws MxException;
}
